<template>
  <div class="qjzl">
    <div class="qjzlleft">
      <div class="lftitlebg check-title">
        <span> </span>
        
      </div>
      <div class="lftopdiv lftitlebg">
        <ul>
          <li v-for="(item, index) in listtit" :key="index" :class="currentIndex == index ? 'isactive' : ''"
            @click="bgqihuan(index)">{{ item.name
            }}</li>
        </ul>
        <keep-alive>
          <component :is="showWhat"></component>
        </keep-alive>

      </div>
    </div>
    <div class="qjzlcenter">

      <div class="width100per cenmap divclear positiondiv">

        <div class="width100per  dflex justifybetween">
          <div class="  " style="width:660px;">
            <div class="width100per" style="position:absolute;top:32px;height: 520px;">
              <div id="myEchart" ref="myEchart" class="width100per mapheightqjzl" style="height:520px"/>
            </div>
            <div class="width100per divclear">
              <div class="bzdivbot">
                <div class="shuiqiutu">

                </div>
                <div class="numbi">
                  <p>
                    <span class="liuchu">查获量</span><span class="tongbi">同比<img
                        src="../../assets/common-new/red-down.png"></img></span>
                  </p>
                  <P><span class="bgnumcol">370.47</span><span class="shuliang">万支</span><span
                      class="baifenbi">-2.20%</span></P>
                </div>
              </div>
            </div>
          </div>
          <div class="partflex">
            <div class="parentright">
              <div class="shurig">
                <span class="rigshui" @click="showLiu= !showLiu" style="cursor: pointer;">
                  查获地区<span>TOP5</span>
                </span>
                <div class="listbg" v-if="showLiu">
                  <div class="zyflowul">
                    <ul>
                      <li v-for="(item, index) in outflow.list" :key="index">
                        <div class="width100per dflex justifybetween fontsize14 whitecolor alignitem height36">
                          <div class="flagbg">
                            {{ index + 1 }}
                          </div>
                          <div class="yanwidth88">
                            {{ item.name }} 
                          </div>
                          <div class="fontsize14 lightblue" style="margin-right:50px;white-space: nowrap;">
                            <count-to :startVal="0" :endVal="Number(item.num)" :duration="3000" decimals=2></count-to>
                            <span class="fontsize12 whitecolor marginleft2px">万支</span>
                          </div>
                          <div class="fontsize14 lightblue">
                            <span class="fontsize12 whitecolor marginleft2px">{{ item.baif }}%</span>
                          </div>
                        </div>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
              <div class="shurigxia">
                <span class="rigshui"  @click="showALiu= !showALiu" style="cursor: pointer;">
                  查获品规<span>TOP5</span>
                </span>
                <div class="listbg"  v-if="showALiu">
                  <div class="zyflowul">
                    <ul>
                      <li v-for="(item, index) in outflow.liAst" :key="index">
                        <div class="width100per dflex justifybetween fontsize14 whitecolor alignitem height36">
                          <div class="flagbg">
                            {{ index + 1 }}
                          </div>
                          <div class="yanwidth88">
                            {{ item.name }} 
                          </div>
                          <div class="fontsize14 lightblue" style="margin-right:20px">
                            <count-to :startVal="0" :endVal="Number(item.num)" :duration="3000" decimals=2></count-to>
                            <span class="fontsize12 whitecolor marginleft2px">万支</span>
                          </div>
                          <div class="fontsize14 lightblue">
                            <span class="fontsize12 whitecolor marginleft2px">{{ item.baif }}%</span>
                          </div>
                        </div>
                      </li>
                    </ul>
                  </div>

                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="width100per divclear">
        <div class="dflex width100per ">
          <div class="maptableft1">
            <div class="centitlebg1">
              <span> </span>
              
            </div>
          </div>
        </div>
      </div>
      <div class=" centerbotdiv ">
        <div class="width100per dflexcolumn true-flow-table-title">
          <ul>
                <li v-for="(item, index) in listtitbot" :key="index" :class="currentIndex1 == index ? 'isactive1' : ''"
                  @click="bgqihuan1(index)">{{ item.name }}</li>
              </ul>
          <keep-alive>
            <component :is="showWhatecharts"></component>
          </keep-alive>
        </div>
      </div>
    </div>
    <div class="qjzlright">
      <div class="dflex width100per justifybetween">
        <div class="centitlebg chachubi"> </div>
      </div>
      <div class="width100per divclear">
        <div class="rightyopa chachubi">
          <qingbaoyujing></qingbaoyujing>
        </div>
      </div>


    </div>
  </div>
</template>
  
<script>
import Anhui from "../../mapdata/anhui/anhui.json";

import provincialdiqu from "./provincialdiqu.vue";
import provincialpaiming from "./provincialpaiming.vue";

import provinecharts from "./seizedprovchahuo";
import provincialbiqs from "./seizedprovqushi";

import qingbaoyujing from "./qinbao";

//引入水球图插件
import "echarts-liquidfill";
export default {
  data() {
    return {
      showLiu: false,
      showALiu: false,
      isSpread: false,
      boxshow: false,
      showWhat: "provincialdiqu",
      showWhatecharts: "provinecharts",
      listtit: [{ name: "地区排名" }, { name: "品规排名" }],
      listtitbot: [{ name: "查获总量趋势" }, { name: "查处比趋势" }],

      currentIndex: 0,
      currentIndex1: 0,
      outflow: {
        list: [
          { name: "江苏省", num: "58.6", baif: "-61.92" },
          { name: "河南省", num: "50.4", baif: "+42.53" },
          { name: "湖北省", num: "39.42", baif: "+298.99" },
          { name: "河北省", num: "31.14", baif: "+326.58" },
          { name: "浙江省", num: "24.62", baif: "+28.13" },
        ],
        liAst: [
          { name: "钻石(硬迎宾)", num: "46.26", baif: "+105.24" },
          { name: "钻石(硬特醇)", num: "20.9", baif: "+19.98" },
          { name: "钻石(细支荷花)", num: "18.5", baif: "+7.31" },
          { name: "钻石(双中支荷花)", num: "17.66", baif: "+13.21" },
          { name: "钻石(闪光)", num: "15.7", baif: "+31.49" },
        ], //真烟流出品规
      },
      qsjydata: {
        list: [
          {
            unit: "合肥市",
            num: "102.94",
            sort: "A",
          },
          {
            unit: "安庆市",
            num: "101.52",
            sort: "A",
          },
          {
            unit: "六安市",
            num: "101.29",
            sort: "A",
          },
          {
            unit: "铜陵市",
            num: "93.71",
            sort: "A",
          },
          {
            unit: "池州市",
            num: "76.33",
            sort: "B",
          },
          {
            unit: "淮北市",
            num: "69.3",
            sort: "B",
          },
          {
            unit: "除州市",
            num: "68.65",
            sort: "B",
          },
          {
            unit: "马鞍山市",
            num: "67.71",
            sort: "B",
          },
          {
            unit: "芜湖市",
            num: "67.34",
            sort: "B",
          },
          {
            unit: "宣城市",
            num: "66.68",
            sort: "B",
          },
          {
            unit: "宿州市",
            num: "65.7",
            sort: "B",
          },
          {
            unit: "亳州市",
            num: "65.43",
            sort: "B",
          },
          {
            unit: "黄山市",
            num: "64.71",
            sort: "B",
          },
          {
            unit: "蚌埠市",
            num: "60.83",
            sort: "B",
          },
          {
            unit: "淮南市",
            num: "57.42",
            sort: "C",
          },
          {
            unit: "阜阳市",
            num: "57.02",
            sort: "C",
          },
        ],
      },
      maplist: {
        maplista: [
          {
            name: "市场秩序",
            color: "#C6FF83",
          },
          {
            name: "真烟异动",
            color: "#FFF583",
          },
          {
            name: "执法力度",
            color: "#83FBFF",
          },
          {
            name: "经营信心",
            color: "#FF83A3",
          },
        ],
        maplistb: [
          {
            name: "A：优≥80",
            color: "#00FF06",
          },
          {
            name: "B：80＞良≥60",
            color: "#007CEC",
          },
          {
            name: "C：差＜60",
            color: "#FF0000",
          },
        ],
      },
      anhuiarr: [
        {
          name: "蚌埠市",
          value: [117.003228, 33.099667],
        },
        {
          name: "合肥市",
          value: [116.953042, 31.86119],
        },
        {
          name: "芜湖市",
          value: [117.930051, 31.226319],
        },
        {
          name: "宣城市",
          value: [118.397995, 30.495667],
        },
        {
          name: "池州市",
          value: [117.139157, 30.296037],
        },
        {
          name: "亳州市",
          value: [116.002939, 33.550338],
        },
        {
          name: "铜陵市",
          value: [117.216576, 30.909935],
        },
        {
          name: "淮北市",
          value: [116.794664, 33.971707],
        },
        {
          name: "淮南市",
          value: [116.818329, 32.347574],
        },
        {
          name: "黄山市",
          value: [117.697325, 29.909239],
        },
        {
          name: "安庆市",
          value: [116.203551, 30.50883],
        },
        {
          name: "滁州市",
          value: [117.670264, 32.533627],
        },
        {
          name: "阜阳市",
          value: [115.250729, 32.956969],
        },
        {
          name: "宿州市",
          value: [117.134084, 33.783891],
        },
        {
          name: "马鞍山市",
          value: [118.507906, 31.569362],
        },
        {
          name: "六安市",
          value: [115.857676, 31.552889],
        },
      ],
      regionsdata: [
        {
          name: "蚌埠市",
          namea: "蚌埠",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "合肥市",
          namea: "合肥",
          littitle: "A",
          itemStyle: {
            color: "rgba(0, 255, 6, 1)", //省份背景色
          },
        },
        {
          name: "芜湖市",
          namea: "芜湖",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "宣城市",
          namea: "宣城",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "池州市",
          namea: "池州",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "亳州市",
          namea: "亳州",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "铜陵市",
          namea: "铜陵",
          littitle: "A",
          itemStyle: {
            color: "rgba(0, 255, 6, 1)", //省份背景色
          },
        },
        {
          name: "淮北市",
          namea: "淮北",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "淮南市",
          namea: "淮南",
          littitle: "C",
          itemStyle: {
            color: "rgba(255, 0, 0, 1)", //省份背景色
          },
        },
        {
          name: "黄山市",
          namea: "黄山",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "安庆市",
          namea: "安庆",
          littitle: "A",
          itemStyle: {
            color: "rgba(0, 255, 6, 1)", //省份背景色
          },
        },
        {
          name: "滁州市",
          namea: "滁州",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "阜阳市",
          namea: "阜阳",
          littitle: "C",
          itemStyle: {
            color: "rgba(255, 0, 0, 1)", //省份背景色
          },
        },
        {
          name: "宿州市",
          namea: "宿州",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "马鞍山市",
          namea: "马鞍山",
          littitle: "B",
          itemStyle: {
            color: "rgba(0, 124, 236, 1)", //省份背景色
          },
        },
        {
          name: "六安市",
          namea: "六安",
          littitle: "A",
          itemStyle: {
            color: "rgba(0, 255, 6, 1)", //省份背景色
          },
        },
      ],
    };
  },
  components: {
    Anhui,
    provincialdiqu,
    provincialpaiming,
    provinecharts,
    provincialbiqs,
    qingbaoyujing,
  },
  mounted() {
    // this.rawLine({
    //   ename: Anhui,
    //   name: "安徽",
    // }); //初始地图
    this.initMapInfo("myEchart");
    this.init();
  },

  methods: {
    togglebox() {
      this.boxshow = !this.boxshow;
      this.isSpread = !this.isSpread;
    },

    showxia() {},
    bgqihuan(index) {
      this.currentIndex = index;
      if (index == 0) {
        this.showWhat = "provincialdiqu";
      } else {
        this.showWhat = "provincialpaiming";
      }
    },
    bgqihuan1(index) {
      this.currentIndex1 = index;
      if (index == 0) {
        this.showWhatecharts = "provinecharts";
      } else {
        this.showWhatecharts = "provincialbiqs";
      }
    },
    init() {
      let mychart = this.$echarts.init(document.getElementById("linezhe"));
      let option = {
        grid: {
          top: "25%",
          left: "5%",
          right: "5%",
          bottom: "5%",
          containLabel: true,
        },
        tooltip: {
          trigger: "axis",
          axisPointer: {
            type: "line",
            lineStyle: {
              color: "rgba(113, 113, 113, 1)",
            },
          },
          backgroundColor: "rgba(42, 51, 74, 1)",
          borderColor: "transparent",
          formatter: function (params) {
            let colors = ["rgba(124, 124, 191, 1)", "rgba(233, 195, 116, 1)"];
            let returnData = '<div style="padding: 5px 10px;">';
            returnData +=
              '<span style="font-family: MicrosoftYaHei; font-size: 14px; color: rgba(210, 221, 249, 1);">' +
              params[0].axisValue +
              "</span><br/>";
            for (let i = 0; i < params.length; i++) {
              returnData +=
                '<span style="display:inline-block; width:10px; height:8px; margin-right:5px; border-radius:1px; background-color:' +
                colors[i] +
                '"></span>';
              returnData +=
                '<span style="font-family: MicrosoftYaHei; font-size: 14px; color: ' +
                colors[i] +
                '">' +
                params[i].seriesName +
                '：</span><span style="font-family: MicrosoftYaHei; font-size: 14px; color: ' +
                colors[i] +
                '">' +
                params[i].value +
                '</span><span style="display:inline-block; margin-left: 4px; line-height: 10px; font-family: MicrosoftYaHei; font-size: 12px; color: ' +
                colors[i] +
                '">车</span><br/>';
            }
            returnData += "</div>";
            return returnData;
          },
        },
        xAxis: {
          type: "category",
          axisLine: {
            lineStyle: {
              color: "white",
            },
          },
          axisLabel: {
            // interval: 0,
            // rotate: 40,
            textStyle: {
              fontFamily: "Microsoft YaHei",
            },
          },
          data: ["7-29", "7-30", "7-31", "8-1", "8-2", "8-3"],
        },
        yAxis: {
          type: "value",
          name: "(万支)",
          axisLine: {
            show: false,
            lineStyle: {
              color: "white",
            },
          },
          splitLine: {
            show: true,
            lineStyle: {
              color: "rgba(255,255,255,0.3)",
            },
          },
          axisLabel: {},
        },
        series: [
          {
            name: "计划量",
            type: "line",
            showAllSymbol: true,
            symbol: "circle",
            symbolSize: 5,
            lineStyle: {
              color: "rgba(155, 155, 226, 1)",
            },
            label: {
              show: false,
            },
            itemStyle: {
              color: "rgba(155, 155, 226, 0.8)",
              borderColor: "rgba(155, 155, 226, 0.8)",
              borderWidth: 3,
            },
            areaStyle: {
              normal: {
                color: new this.$echarts.graphic.LinearGradient(
                  0,
                  0,
                  0,
                  1,
                  [
                    {
                      offset: 0,
                      color: "rgba(155, 155, 226, 0.8)",
                    },
                    {
                      offset: 1,
                      color: "rgba(155, 155, 226, 0)",
                    },
                  ],
                  false
                ),
                shadowColor: "rgba(155, 155, 226, 0.8)",
                shadowBlur: 20,
              },
            },
            data: [502.84, 205.97, 332.79, 281.55, 398.35, 214.02],
          },
        ],
      };

      mychart.setOption(option);
    },
    rawLine(map) {
      //阴影区域
      let option = {
        // top:'-180px',
        // right:'-40px',
        series: [
          {
            type: "map3D",
            zoom: 2,

            // top:5%,
            selectedMode: "single", //地图高亮单选
            regionHeight: 23, //地图高度
            map: map.ename,
            viewControl: {
              center: [-10, 0, 0],
              distance: 175, //地图视角 控制初始大小
              autoRotate: false,
              rotateSensitivity: 0,
              alpha: 67, //视角绕 x 轴，即上下旋转的角度
              // rotateSensitivity: [1, 1],
              animation: true,
            },
            //  zoomSensitivity: false,//是否开启缩放和平移/鼠标滑动缩放禁止
            label: {
              show: true, //是否显示市
              textStyle: {
                color: "#fff", //文字颜色
                fontSize: 10, //文字大小
                backgroundColor: "rgba(0,0,0,0)",
              },
              formatter: function (param) {
                //  var str = param.data.littitle + "\n" + param.data.namea;
                var str = param.data.namea;
                // console.log(param)
                return str;
              },
            },
            itemStyle: {
              // areaColor: 'red',
              color: "#2B5890", //地图颜色
              borderWidth: 2, //分界线wdith
              borderColor: "#000", //分界线颜色
            },
            emphasis: {
              show: false,
              //   label: {
              //     show: true, //是否显示高亮
              //     textStyle: {
              //       color: "#fff", //高亮文字颜色
              //     },
              //   },
              //   itemStyle: {
              //     color: "#0489d6", //地图高亮颜色
              //   },
            },
            data: this.regionsdata,
          },
        ],
      };
      let myChart = this.$echarts.init(document.getElementById("myEchart"));
      myChart.showLoading();
      this.$echarts.registerMap(map.ename, map.ename);
      this.$nextTick(() => {
        // 初始化地图
        myChart.setOption(option, false);
        myChart.resize();
        myChart.hideLoading();
      });
      //地图下钻点击事件
      myChart.on("click", (param) => {
        console.log(param);
        let names = param.name;
        // for (let key in this.dataList) {
        //   console.log(this.dataList[key]);
        //   if (names == this.dataList[key].name) {
        //     this.showArea(this.dataList[key], key);
        //     break;
        //   }
        // }
      });
    },
    initMapInfo(id) {
      var that = this;
      // 地图数据
      var chinaGeoCoordMap = {
        黑龙江: [127.9688, 45.368],
        内蒙古: [110.3467, 41.4899],
        吉林: [125.8154, 44.2584],
        北京市: [116.4551, 40.2539],
        辽宁: [123.1238, 42.1216],
        河北: [114.4995, 38.1006],
        天津: [117.4219, 39.4189],
        山西: [112.3352, 37.9413],
        陕西: [109.1162, 34.2004],
        甘肃: [103.5901, 36.3043],
        宁夏: [106.3586, 38.1775],
        青海: [101.4038, 36.8207],
        新疆: [87.9236, 43.5883],
        西藏: [91.11, 29.97],
        四川: [103.9526, 30.7617],
        重庆: [108.384366, 30.439702],
        山东: [117.1582, 36.8701],
        河南: [113.4668, 34.6234],
        江苏: [118.8062, 31.9208],
        安徽: [117.29, 32.0581],
        湖北: [114.3896, 30.6628],
        浙江: [119.5313, 29.8773],
        福建: [119.4543, 25.9222],
        江西: [116.0046, 28.6633],
        湖南: [113.0823, 28.2568],
        贵州: [106.6992, 26.7682],
        云南: [102.9199, 25.4663],
        广东: [113.12244, 23.009505],
        广西: [108.479, 23.1152],
        海南: [110.3893, 19.8516],
        上海: [121.4648, 31.2891],
      };
      // 飞线点数据
      var chinaDatas = [
        [
          {
            name: "江苏",
            value: 0,
          },
        ],
        [
          {
            name: "河南",
            value: 0,
          },
        ],
        [
          {
            name: "湖北",
            value: 0,
          },
        ],
        [
          {
            name: "河北",
            value: 0,
          },
        ],
        [
          {
            name: "浙江",
            value: 0,
          },
        ],
      ];
      let formdata = "安徽";

      var convertData = function (data) {
        var res = [];
        for (var i = 0; i < data.length; i++) {
          var dataItem = data[i];
          var fromCoord = chinaGeoCoordMap[dataItem[0].name];
          var toCoord = [117.29, 32.0581];
          // var toCoord = [108.384366, 30.439702]; //中心点地理坐标
          if (fromCoord && toCoord) {
            res.push([
              {
                // 飞线从哪里出发

                coord: fromCoord,
                value: dataItem[0].value,
              },
              {
                // 飞线去往哪里
                coord: toCoord,
              },
            ]);
          }
        }
        return res;
      };

      var series = [];

      [[formdata, chinaDatas]].forEach(function (item, i) {
        series.push(
          {
            type: "lines",
            coordinateSystem: "geo",
            zlevel: 2,
            effect: {
              show: true,
              period: 4, //箭头指向速度，值越小速度越快
              trailLength: 0, //特效尾迹长度[0,1]值越大，尾迹越长重
              symbol: "arrow", //箭头图标
              symbolSize: 8, //图标大小
              color: "#2BC8FF", // 图标颜色
            },
            lineStyle: {
              normal: {
                show: true,
                width: 2, //尾迹线条宽度
                opacity: 1, //尾迹线条透明度
                curveness: 0.3, //尾迹线条曲直度
                color: "#2BC8FF", // 飞线颜色
              },
              color: "#2BC8FF",
            },
            data: convertData(item[1]),
          },
          {
            type: "effectScatter",
            coordinateSystem: "geo",
            zlevel: 2,
            rippleEffect: {
              //涟漪特效
              period: 4, //动画时间，值越小速度越快
              brushType: "stroke", //波纹绘制方式 stroke, fill
              scale: 4, //波纹圆环最大限制，值越大波纹越大
              color: "#2BC8FF",
            },
            label: {
              normal: {
                show: true,
                position: "right", //显示位置
                offset: [10, 0], //偏移设置
                formatter: function (params) {
                  //圆环显示文字
                  return params.data.name;
                },
                fontSize: 12,
              },
              emphasis: {
                show: false,
              },
            },
            symbol: "circle",
            symbolSize: function (val) {
              return 10; //圆环大小
            },
            itemStyle: {
              normal: {
                show: false,
                color: "#2BC8FF",
              },
            },
            data: item[1].map(function (dataItem) {
              return {
                //在这里定义你所要展示的数据
                // name: dataItem[0].name,
                // value: chinaGeoCoordMap[dataItem[0].name].concat([dataItem[0].value]),
                name: dataItem[0].name,
                value: chinaGeoCoordMap[dataItem[0].name].concat([
                  dataItem[0].value,
                ]),
              };
            }),
          },
          //中心点
          {
            type: "effectScatter",
            coordinateSystem: "geo",
            zlevel: 15,
            rippleEffect: {
              period: 4,
              brushType: "stroke",
              scale: 4,
              color: "#2BC8FF",
            },
            label: {
              normal: {
                show: true,
                position: "right",
                //offset:[5, 0],
                color: "#2BC8FF",
                formatter: "{b}",
                textStyle: {
                  color: "#2BC8FF",
                },
              },
              emphasis: {
                show: false,
                color: "#2BC8FF",
              },
            },
            symbol: "circle",
            symbolSize: 5,
            itemStyle: {
              color: "#2BC8FF",
            },
            data: [
              {
                name: item[0],
                value: chinaGeoCoordMap[item[0]].concat([10]),
              },
            ],
          }
        );
      });

      let myChart = this.$echarts.init(document.getElementById(id));

      let option = {
        // bgColor: '#1a1e45',

        // tooltip: {
        //   trigger: "item",
        // },

        geo: {
          map: "china",
          zoom: 1.1,
          left: "20%",
          top: "8%",
          regions: [
            {
              name: "江苏",
              itemStyle: {
                areaColor: "red",
              },
            },
            {
              name: "河南",
              itemStyle: {
                areaColor: "yellow",
              },
            },
            {
              name: "湖北",
              itemStyle: {
                areaColor: "yellow",
              },
            },
            {
              name: "河北",
              itemStyle: {
                areaColor: "blue",
              },
            },
            {
              name: "浙江",
              itemStyle: {
                areaColor: "blue",
              },
            },
          ],
          label: {
            normal: {
              show: false,
              textStyle: {
                color: "#FFFFFF",
              },
            },
            emphasis: {
              show: false,
            },
          },
          roam: false, //是否允许缩放
          itemStyle: {
            normal: {
              areaColor: {
                type: "linear-gradient",
                x: 0,
                y: 600,
                x2: 0,
                y2: 60,
                colorStops: [
                  {
                    offset: 0,
                    color: "#003ecb", // 0% 处的颜色
                  },
                  {
                    offset: 1,
                    color: "#2bc8ff",
                  },
                ],
                global: true, // 缺省为 false
              },
              //地图背景色
              borderColor: "rgba(255,255,255,0.5)", //省市边界线00fcff 516a89
              borderWidth: 1,
              textStyle: "#fff",
              shadowColor: "rgba(58,115,192,0.5)",
              shadowOffsetX: 5,
              shadowOffsetY: 5,
            },
            emphasis: {
              color: "#22ccfb", //悬浮背景
            },
          },
          data: [],
        },
        series: series,
      };
      myChart.showLoading();
      this.$nextTick(() => {
        // 初始化地图
        myChart.setOption(option, false);
        myChart.resize();
        myChart.hideLoading();
      });
      //  myChart.setOption(option)
    },
    showArea(param) {
      this.$echarts.registerMap(param.ename, param.ename);
      alert(param.name);
      this.rawLine(param); //重新绘画地图
    },
  },
};
</script>
  
<style lang="scss" scoped>
@import "../../assets/scss/qjzl-neiguan.scss";

.mybox-leave-active,
.mybox-enter-active {
  transition: all 0s ease;
}

.mybox-leave-active,
.mybox-enter {
  height: 0px !important;
}

.mybox-leave,
.mybox-enter-active {
  height: auto;
}

.maptableft1 {
  width: 100%;
}

.centitlebg1 {
  width: 100%;
  height: 47px;
  background: url(../../assets/prov-outer-check/zhenyanchahuoqushi-title.png);
  line-height: 35px;
  background-size: 100% 100%;
  padding-left: 38px;
  color: #fff;
  padding-left: 38px;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;

  .isactive1 {
    background: url(../../assets/img/btnov.png);
    background-size: 100% 100%;
  }

  span {
    float: left;
    width: 47%;
  }

  ul {
    font-size: 14px;
    float: right;
    width: 51%;
    margin-top: 10px;

    li {
      cursor: pointer;
      float: left;
      margin-left: 15px;
      background: url(../../assets/img/btnho.png);
      background-size: 100% 100%;
      font-size: 12px;
      width: 43%;
      height: 20px;
      text-align: center;
      line-height: 20px;
    }
  }
}

.true-flow-table-title {
  .isactive1 {
    background: url(../../assets/prov-outer-check/tag-has-choose.png);
    background-size: 100% 100%;
  }

  ul {
    font-size: 14px;
    display: flex;
    width: 50%;
    margin: 8px auto 0;

    li {
      cursor: pointer;
      // float: left;
      // margin-left: 15px;
      background: url(../../assets/prov-outer-check/tag-not-choose.png);
      background-size: 100% 100%;
      font-size: 12px;
      width: 50%;
      height: 30px;
      text-align: center;
      line-height: 30px;
    }
  }
}

.lftitlebg {
  .isactive {
    background: url(../../assets/prov-inner-flow/tag-has-choose.png);
    background-size: 100% 100%;
    color: #36acca;
  }

  span {
    float: left;
  }

  ul {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    color: #6897b5;

    li {
      cursor: pointer;
      float: left;
      // margin-left: 15px;
      background: url(../../assets/prov-inner-flow/tag-not-choose.png);
      background-size: 100% 100%;
      font-size: 12px;
      width: 43%;
      height: 20px;
      text-align: center;
      line-height: 20px;
    }
  }
}

.lftopdiv,
.rightyopa {
  width: 100%;
  height: 793px;
  margin: 0 auto;
  background: url(../../assets/prov-outer-check/zhenyanliuchu-bg.png);
  background-size: 100% 100%;
  padding: 10px 16px;
  // margin-top: -7px;
  position: relative;
  font-weight: 400 !important;

  ul {
    list-style: none;

    li {
      width: 100%;
      height: 30px;
      line-height: 30px;
    }

    .jinduname {
      font-size: 14px;
    }

    .icon {
      width: 1.5%;
      height: 30%;
      font-size: 14px;
      background-size: 100% 100%;
      margin-top: 11px;
    }

    .baifen {
      width: 8%;
      margin-left: 10px;
      font-size: 14px;
    }
  }

  .titlist {
    float: left;
    width: 5%;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    margin-top: 5px;
    margin-right: 5px;
    padding-right: 1px;
  }

  span {
    float: left;
    width: 15%;
  }

  .el-progress {
    float: left;
    width: 60%;
    margin-top: 6px;
  }
}
// .chachubi{
//   background: url(../../assets/prov-outer-check/liuxiaobi-bg.png);
// }
.rightyopa::after {
  content: "";
  display: block;
  width: 100%;
  height: 15px;
  background: url(../../assets/qjzl/rightlinebot.png);
  background-size: 100% 100%;
  position: absolute;
  bottom: 0%;
  left: 0%;
}

.lftopdiv::after {
  content: "";
  display: block;
  width: 100%;
  height: 15px;
  background: url(../../assets/qjzl/lftopdiv1bot.png);
  background-size: 100% 100%;
  position: absolute;
  bottom: 0%;
  left: 0%;
}

.centerbotdiv {
  // height: 218px
  width: 885px;
  height: 204px;
  background: url(../../assets/prov-outer-check/zhenyanwailiuqushi-bg.png);
}

.bzdivbot {
  position: absolute;
  top: 30px;
  left: 4px;
  z-index: 99999999999;
  .numbi {
    position: absolute;
    right: 19px;
    top: 20px;
    width: 224px;
    height: 84px;

    p {
      width: 100%;
      height: 40px;
      line-height: 40px;

      img {
        height: 15px;
        width: 10px;
        margin-left: 5px;
        margin-top: 3px;
      }

      .tongbi {
        float: right;
        font-size: 14px;
      }

      .bgnumcol {
        font-size: 30px;
        color: #30fcfd;
      }

      .baifenbi {
        color: #30fcfd;
        float: right;
      }
    }
  }
}

.shuiqiutu {
  width: 380px;
  height: 98px;
  background: url(../../assets/img/bgkuang.png);
  background-size: 100% 100%;
  position: relative;

  .sqtext {
    width: 136px;
    height: 142px;
    background: url(../../assets/img/shuiqiu.png) no-repeat;
    background-size: 100% 100%;
    position: absolute;
    left: -2px;
    top: 0px;
    line-height: 120px;
    text-align: center;
    font-size: 21px;
  }
}

.parentright {
  position: relative;

  .shurig {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 239px;
    background: url(../../assets/img/shu.png);
    background-size: 100% 100%;

    .rigshui {
      width: 5px;
      height: 100%;
      margin-top: 47px;
      margin-left: 13px;

      span {
        width: 5px;
        height: 30px;
        transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        /* Internet Explorer 9*/
        -moz-transform: rotate(90deg);
        /* Firefox */
        -webkit-transform: rotate(90deg);
        /* Safari 和 Chrome */
        -o-transform: rotate(90deg);
        /* Opera */
      }
    }

    .listbg {
      width: 298px;
      height: 239px;
      position: absolute;
      top: 15px;
      left: -290px;
    }

    .zyflowul {
      position: absolute;
      left: 0%;
      top: 12px;
      width: 100%;
      height: 183px;
      background: rgba(41, 138, 255, 0.15);
    }

    .zyflowul ul {
      width: 100%;
      margin: 0 auto;
      padding: 0 auto;
    }

    .zyflowul ul li {
      width: 100%;
      padding: 0px 11px;
      // line-height:36px;
      height: 36px;
    }

    .zyflowul ul li:nth-child(2n + 1) {
      background: rgba(0, 52, 148, 0.3);
    }

    .zyflowul ul li div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/4.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .zyflowul ul li:nth-child(1) div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/1.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .zyflowul ul li:nth-child(2) div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/2.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .zyflowul ul li:nth-child(3) div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/3.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .yanwidth88 {
      width: 70px;
      margin: 0 auto;
      padding: 0 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      display: inline-block;
      white-space: nowrap;
      margin-left: 5px;
    }

    .alignitem {
      align-items: center;
    }

    .justifybetween {
      justify-content: space-between;
    }

    .height36 {
      height: 36px;
    }
  }

  .shurigxia {
    position: absolute;
    right: 0;
    top: 280px;
    width: 50px;
    height: 239px;
    background: url(../../assets/img/shu.png);
    background-size: 100% 100%;

    .listbg {
      width: 298px;
      height: 239px;
      position: absolute;
      top: 15px;
      left: -290px;
    }

    .rigshui {
      width: 5px;
      height: 100%;
      margin-top: 47px;
      margin-left: 13px;

      span {
        width: 5px;
        height: 30px;
        transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        /* Internet Explorer 9*/
        -moz-transform: rotate(90deg);
        /* Firefox */
        -webkit-transform: rotate(90deg);
        /* Safari 和 Chrome */
        -o-transform: rotate(90deg);
        /* Opera */
      }
    }

    .zyflowul {
      position: absolute;
      left: 0%;
      top: 12px;
      width: 100%;
      height: 183px;
      background: rgba(41, 138, 255, 0.15);
    }

    .zyflowul ul {
      width: 100%;
      margin: 0 auto;
      padding: 0 auto;
    }

    .zyflowul ul li {
      width: 100%;
      padding: 0px 11px;
      // line-height:36px;
      height: 36px;
    }

    .zyflowul ul li:nth-child(2n + 1) {
      background: rgba(0, 52, 148, 0.3);
    }

    .zyflowul ul li div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/4.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .zyflowul ul li:nth-child(1) div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/1.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .zyflowul ul li:nth-child(2) div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/2.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .zyflowul ul li:nth-child(3) div .flagbg {
      width: 23px;
      height: 23px;
      background: url(../../assets/qjzl/3.png) no-repeat;
      background-size: 100% 100%;
      text-align: center;
    }

    .alignitem {
      align-items: center;
    }

    .justifybetween {
      justify-content: space-between;
    }

    .height36 {
      height: 36px;
    }
  }
}
.echartsline {
  width: 100%;
}
</style>
<style lang="scss">
.el-progress-bar__inner {
  border-radius: 5px;
  background-color: unset;
  background-image: linear-gradient(to right, #6d9df8, #6dd6f8);
}

.el-progress-bar__outer {
  border-radius: 5px;
}
</style>
  